package com.cdjf.controller;

import com.cdjf.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.cdjf.pojo.Result;

@RestController
public class EmpController {

    @Autowired
    private EmpService empService;

    @RequestMapping("/emp-list")
    public Result empList() {
        return Result.success(empService.empList());
    }

}
